package com.gjintel.framework.res.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gjintel.framework.res.dao.IResDao;
import com.gjintel.framework.res.model.Resources;
import com.gjintel.framework.res.service.IResService;
import com.gjintel.sdk.base.service.impl.BaseServiceImpl;
/**
 * @description 资源服务业务实现
 * @author fengya
 * @date 2016-3-14 下午06:11:37
 */
@Service("resService")
public class ResServiceImpl extends BaseServiceImpl implements IResService{

	@Autowired
	private IResDao resDao;
	
	@Override
	public List<Resources> findResources(String businessId) {
		return this.resDao.findResources(businessId);
	}

	@Override
	public List<Resources> findAll() {
		return this.resDao.findAll();
	}

	@Override
	public List<Resources> findByBusinessIdAndFlag(String businessId, Integer flag) {
		
		return this.resDao.findByBusinessIdAndFlag(businessId,flag);
	}

}
